package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.PrivateMessage;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.PrivateMessageQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPrivateMessageService {
    PageInfo query(PrivateMessageQueryObject qo);

    /**
     * 新增信息
     * @param privateMessage
     */
    void save(PrivateMessage privateMessage);

    /**
     * 查询私信人员列表
     * @param senderId
     * @return
     */
    List<User> getReceiver(QueryObject qo);

    /**
     * 修改状态为已读
     * @param id
     * @author CHN
     */
    void updateBrower(Long id);

    void updateBySenderId(Long senderId);
}
